package com.foreknow.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Patientcosts implements Serializable {
    /**
     * ID主键
     *
     * @mbggenerated
     */
    private Integer id;

    /**
     * 挂号ID
     *
     * @mbggenerated
     */
    private Integer registid;

    /**
     * 发票ID
     *
     * @mbggenerated
     */
    private Integer invoiceid;

    /**
     * 项目ID
     *
     * @mbggenerated
     */
    private Integer itemid;

    /**
     * 项目类型 1-非药品 2-药品
     *
     * @mbggenerated
     */
    private Integer itemtype;

    /**
     * 项目名称
     *
     * @mbggenerated
     */
    private String name;

    /**
     * 项目单价
     *
     * @mbggenerated
     */
    private BigDecimal price;

    /**
     * 数量
     *
     * @mbggenerated
     */
    private BigDecimal amount;

    /**
     * 执行科室ID
     *
     * @mbggenerated
     */
    private Integer deptid;

    /**
     * 开立时间
     *
     * @mbggenerated
     */
    private Date createtime;

    /**
     * 开立人员ID
     *
     * @mbggenerated
     */
    private Integer createoperid;

    /**
     * 收/退费时间
     *
     * @mbggenerated
     */
    private Date paytime;

    /**
     * 收/退费人员ID
     *
     * @mbggenerated
     */
    private Integer registerid;

    /**
     * 收费方式
     *
     * @mbggenerated
     */
    private Integer feetype;

    /**
     * 退费对应记录ID
     *
     * @mbggenerated
     */
    private Integer backid;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRegistid() {
        return registid;
    }

    public void setRegistid(Integer registid) {
        this.registid = registid;
    }

    public Integer getInvoiceid() {
        return invoiceid;
    }

    public void setInvoiceid(Integer invoiceid) {
        this.invoiceid = invoiceid;
    }

    public Integer getItemid() {
        return itemid;
    }

    public void setItemid(Integer itemid) {
        this.itemid = itemid;
    }

    public Integer getItemtype() {
        return itemtype;
    }

    public void setItemtype(Integer itemtype) {
        this.itemtype = itemtype;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Integer getDeptid() {
        return deptid;
    }

    public void setDeptid(Integer deptid) {
        this.deptid = deptid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getCreateoperid() {
        return createoperid;
    }

    public void setCreateoperid(Integer createoperid) {
        this.createoperid = createoperid;
    }

    public Date getPaytime() {
        return paytime;
    }

    public void setPaytime(Date paytime) {
        this.paytime = paytime;
    }

    public Integer getRegisterid() {
        return registerid;
    }

    public void setRegisterid(Integer registerid) {
        this.registerid = registerid;
    }

    public Integer getFeetype() {
        return feetype;
    }

    public void setFeetype(Integer feetype) {
        this.feetype = feetype;
    }

    public Integer getBackid() {
        return backid;
    }

    public void setBackid(Integer backid) {
        this.backid = backid;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", registid=").append(registid);
        sb.append(", invoiceid=").append(invoiceid);
        sb.append(", itemid=").append(itemid);
        sb.append(", itemtype=").append(itemtype);
        sb.append(", name=").append(name);
        sb.append(", price=").append(price);
        sb.append(", amount=").append(amount);
        sb.append(", deptid=").append(deptid);
        sb.append(", createtime=").append(createtime);
        sb.append(", createoperid=").append(createoperid);
        sb.append(", paytime=").append(paytime);
        sb.append(", registerid=").append(registerid);
        sb.append(", feetype=").append(feetype);
        sb.append(", backid=").append(backid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}